package com.omega.exam.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Knife4jConfiguration {
    @Bean
    public OpenAPI customOpenApi(){
        return new OpenAPI().info(new Info().title("智能考试API").description("这是文档").version("v1.0.0"));
    }
    @Bean
    public GroupedOpenApi userApi(){
        return GroupedOpenApi.builder().group("用户信息管理").pathsToMatch("/api/user/**").build();
    }

}
